﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneCtrl : MonoBehaviour {
    public List<Transform> spwanPos;
    public int timeLimit;

    
    public Vector3 GetRandomSpwanPos()
    {
        var spwan_index = Random.Range(0, spwanPos.Count);
        return spwanPos[spwan_index].position;
    }
}

//[System.Serializable]
///// <summary>
///// 地图编辑数据
///// </summary>
//public class SceneData
//{
//    /// <summary>
//    /// 玩家出生点
//    /// </summary>
//    public List<Transform> spwanPos;
    
//    /// <summary>
//    /// 时间限制，0 为无限
//    /// </summary>
//    public int timeLimit;
//}